package delegate

import kotlin.properties.Delegates

class Foo {
    var notNullBar: String by Delegates.notNull()
}

fun main() {
    val foo = Foo()
    foo.notNullBar = "bar"
    println(foo.notNullBar)
}